Skip to content

Separate configuration and commands in CABAL REFERENCE - #12647

Open
philderbeast wants to merge 3 commits into
haskell:masterfrom
cabalism:doc/separate-configuration-commands
Open

philderbeast wants to merge 3 commits into
haskell:masterfrom
cabalism:doc/separate-configuration-commands

Conversation

@philderbeast

@philderbeast philderbeast commented Nov 21, 2026 •

Copy link
Copy Markdown
Collaborator

I used local no-index repositories for the cabal vendor command, #12522. Since then I've been reviewing related sections of the users guide. I wanted to maybe add a top-level section in the CABAL REFERENCE for repositories. Currently "Local no-index repostories" are nested under "Repository Specification". Before doing that, this pull request is about changing the top-level sections to have less wrapping, less nesting and a slight reordering to demote "Low-level Setup Scripts".

Less Wrapping

This is how the wrapping section titles render for me:

1. Package Description —
   <package>.cabal File
2. Project Description — cabal.project
   File
...
4. cabal-install Configuration and
   Commands
...
7. Package Description Format
   Specification History

To avoid wrapping, I'm suggesting we use shorter titles.

Less Nesting

  • The commands I most use, for me the important ones, sit under "Configuration" and "Commands" but "External Commands" and "Setup.hs Commands" are top-level. So I'm suggesting to split "Configuration" from "Commands" and demote "Setup.hs Commands", moving it further down the list and renaming it to "Low-level Setup Scripts".

Here's a diff of the changes in layout of CABAL REFERENCE:

 CABAL REFERENCE
-├── 1. Package Description — <package>.cabal File
-├── 2. Project Description — cabal.project File
-├── 3. Version Control System Fields
-├── 4. cabal-install Configuration and Commands
-│   ├── 4.1. Configuration
-│   │   ├── 4.1.1. Overview
-│   │   ├── 4.1.2. Environment variables
-│   │   ├── 4.1.3. Directories
-│   │   ├── 4.1.4. Repository specification
-│   │   └── 4.1.5. Program options
-│   └── 4.2. Commands
-│       ├── 4.2.1. Common Arguments and Flags
-│       ├── ...
-│       └── 4.2.10. Sanity checks and shipping
-├── 5. External Commands
-├── 6. Setup.hs Commands
-├── 7. Package Description Format Specification History
-└── 8. Field Syntax Reference
+├── 1. Package Description
+├── 2. Project Description
+├── 3. Version Control
+├── 4. Configuration
+│   ├── 4.1. Overview
+│   ├── 4.2. Environment variables
+│   ├── 4.3. Directories
+│   ├── 4.4. Repository specification
+│   └── 4.5. Program options
+├── 5. Commands
+│   ├── 5.1. Common Arguments and Flags
+│   ├── ...
+│   └── 5.10. Sanity checks and shipping
+├── 6. External Commands
+├── 7. Package Format History
+├── 8. Field Syntax
+└── 9. Low-level Setup Scripts

  • Patches conform to the coding conventions.
  • Is this a PR that fixes CI? If so, it will need to be backported to older cabal release branches (ask maintainers for directions).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant